<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="style/favicon.ico"/>
<link href="style/style.css" rel="stylesheet" type="text/css" />
<title>Gatling Stats - Global Information</title>
</head>
<body>
<div class="frise"></div>
<div class="container details">
	<div class="head">
		<a href="http://gatling-tool.org" target="blank_" title="Gatling Home Page"><img alt="Gatling" src="style/logo.png"/></a>
	</div>
	<div class="main">
		<div class="cadre">
				<div class="onglet">
					<img src="style/cible.png" />
					<p>Simulation:&nbsp;<span>stress01 on 2012-10-31 00:13:15</span></p>
				</div>
				<div class="content">
					<div class="sous-menu">
						<div class="item ouvert"><a href="index.html">GLOBAL</a></div>
						<div class="item"><a id="details_link" href="#">DETAILS</a></div>
						<p class="sim_desc">1000 users searching 10 x for RUC, 2000 users reading page quotSobrequot, 1000 users searching 10 x for name</p>
					</div>
					<div class="content-in">
						<h1><span>> </span>Global Information</h1>
						<div class="article">
													<div class="schema polar">
							<div id="container_number_of_requests"></div>
						</div>						<div class="schema demi">
							<div id="container_indicators" class="demi"></div>
						</div>						<div class="statistics extensible-geant collapsed">
							<div id="statistics_title" class="title title_collapsed">STATISTICS <span>(Click here to show more)</span></div>
							<table id="container_statistics" class="statistics-in extensible-geant">
								<thead>
									<tr>
										<th rowspan="2" class="header sortable"><span>Requests</span></th>
										<th rowspan="2"></th>
										<th colspan="3" class="header"><span class="executions">Executions</span></th>
										<th rowspan="2"></th>
										<th colspan="7" class="header"><span class="response-time">Response Time (ms)<span></th>
									</tr>
									<tr>
										<th class="header sortable"><span>Total</span></th>
										<th class="header sortable"><span>OK</span></th>
										<th class="header sortable"><span>KO</span></th>
																														<th class="header sortable"><span>Min</span></th>
																				<th class="header sortable"><span>Max</span></th>
																				<th class="header sortable"><span>Mean</span></th>
																				<th class="header sortable"><span>Std Dev</span></th>
																				<th class="header sortable"><span>95th pct</span></th>
																				<th class="header sortable"><span>99th pct</span></th>
																				<th class="header sortable"><span>Req/s</span></th>
																			</tr>
								</thead>
								<tbody></tbody>
							</table>
						</div>						<div class="schema geant">
							<a name="active_sessions"></a>
							<div id="container_active_sessions" class="geant"></div>
						</div>						<div class="schema geant">
							<div id="container_distrib" class="geant"></div>
						</div>						<div class="schema geant">
							<a name="requests"></a>
							<div id="container_requests" class="geant"></div>
						</div>						<div class="schema geant">
							<a name="transactions"></a>
							<div id="container_transactions" class="geant"></div>
						</div>
						</div>
					</div>
				</div>
		</div>
	</div>
	<div class="nav">
		<ul></ul>
	</div>
</div>
<div class="foot">
	<a href="http://gatling-tool.org" title="Gatling Home Page"><img alt="Gatling" src="style/logo-gatling.jpg"/></a>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/menu.js"></script>
<script type="text/javascript" src="js/all_sessions.js"></script>
<script type="text/javascript" src="js/stats.js"></script>
<script type="text/javascript" src="js/highcharts.js"></script>
<script type="text/javascript" src="js/highstock.js"></script>
<script type="text/javascript" src="js/highcharts-more.js"></script>
<script type="text/javascript" src="js/theme.js"></script>
<script type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">

	var pageStats = stats.global_information;
	$(document).ready(function() {
		setDetailsLinkUrl();
				setGlobalMenu();
				setActiveMenu();
		fillStats(pageStats);
		//
var requestsName = []
var numberOfRequestsOK = []
var numberOfRequestsKO = []

$.each(stats, function (request, values) {
	if (values.name != "Global Information") {
		requestsName.push(values.name)
		numberOfRequestsOK.push(parseInt(values.numberOfRequests.ok))
		numberOfRequestsKO.push(parseInt(values.numberOfRequests.ko))
	}
})

new Highcharts.Chart({

	chart:{
		renderTo:'container_number_of_requests',
		polar:true,
		type:'column',
		height:330
	},

	credits:{
		enabled:false
	},

	title:{
		text:'<span class="chart_title">Number of requests</span>',
		useHTML: true
	},

	xAxis:{
		tickmarkPlacement:'on',
		categories:requestsName,
		labels:{enabled:false}
	},

	yAxis:{
		min:0
	},

	plotOptions:{
		series:{
			stacking:'normal',
			groupPadding:0,
			pointPlacement:'on'
		}
	},

	series:[
		{
			name:'KO',
			data:numberOfRequestsKO,
			color:"#FF0000"
		},
		{
			name:'OK',
			data:numberOfRequestsOK,
			color:"#4572A7"
		}
	]
});
Highcharts.setOptions({
	global: {
		useUTC: false
	}
});

var indicatorsChart = new Highcharts.Chart({
	chart: {
		renderTo: 'container_indicators',
		marginRight: 150
	},
	credits: {
		enabled: false
	},
	legend: {
		enabled: false
	},
	title: {
	 text: 'A title to let highcharts reserve the place for the title set later'
	},
	xAxis: {
		categories: [pageStats.group1.name,pageStats.group2.name,pageStats.group3.name,pageStats.group4.name]
	},
	yAxis: {
		title: {
			text: 'Number of Requests'
		}
	},
	tooltip: {
		formatter: function() {
			var s;
			if (this.point.name) { // the pie chart
				s = ''+ this.point.name +': '+ this.y +' requests';
			} else {
				s = ''+ this.y + ' requests';
			}
			return s;
		}
	},
	plotOptions: {
		series: {
			stacking: 'normal'
		}
	},
	series: [
		{
			type: 'column',
			color: '#A0B228',
			data: [pageStats.group1.count,0,0,0],
			tooltip: { yDecimals: 0, ySuffix: 'ms' }
		},
		{
			type: 'column',
			color: '#FFDD00',
			data: [0,pageStats.group2.count,0,0],
			tooltip: { yDecimals: 0, ySuffix: 'ms' }
		},
		{
			type: 'column',
			color: '#FF9D00',
			data: [0,0,pageStats.group3.count,0],
			tooltip: { yDecimals: 0, ySuffix: 'ms' }
		},
		{
			type: 'column',
			color: '#FF0000',
			data: [0,0,0,pageStats.group4.count],
			tooltip: { yDecimals: 0, ySuffix: 'ms' }
		},
		{
			type: 'pie',
			name: 'Percentages',
			data: [
				{
					name: pageStats.group1.name,
					y: pageStats.group1.percentage,
					color: '#A0B228'
				},
				{
					name: pageStats.group2.name,
					y: pageStats.group2.percentage,
					color: '#FFDD00'
				},
				{
					name: pageStats.group3.name,
					y: pageStats.group3.percentage,
					color: '#FF9D00'
				},
				{
					name: pageStats.group4.name,
					y: pageStats.group4.percentage,
					color: '#FF0000'
				}
			],
			center: [500, 85],
			size: 100,
			showInLegend: false,
			dataLabels: { enabled: false }
		}
	]
});

indicatorsChart.setTitle({
	text: '<span class="chart_title">Indicators</span>',
	useHTML: true
});
//
function toHTMLTableRow(array) {
	var row = '<tr>';
	$.each(array, function(i, value) {
		row += '<td';
		if (value.style)
			row += ' class="' + value.style + '"';
		row += '>'+ value.content + '</td>';
	})
	return row + '</tr>';
}

function generateHtmlRow(url, values) {
	return toHTMLTableRow([
		{ content: '<a href="' + url + '">' + values.name + '</a><span style="display:none;">;' + i + '</span>', style: "total" },
		{ content: "", style: ""},
		{ content: values.numberOfRequests.total, style: "value total" },
		{ content: values.numberOfRequests.ok, style: "value ok" },
		{ content: values.numberOfRequests.ko, style: "value ko" },
		{ content: "", style: ""},
		{ content: values.minResponseTime.total, style: "value total" },
		{ content: values.maxResponseTime.total, style: "value total" },
		{ content: values.meanResponseTime.total, style: "value total" },
		{ content: values.standardDeviation.total, style: "value total" },
		{ content: values.percentiles1.total, style: "value total" },
		{ content: values.percentiles2.total, style: "value total" },
		{ content: values.meanNumberOfRequestsPerSecond.total, style: "value total" }
	]);
}	

var i = 0;
var theadBuff = '';
var tbodyBuff = '';
$.each(stats, function(request, values) {
	if (values.name  == 'Global Information') {
		theadBuff += generateHtmlRow('index.html', values);
	} else {
		tbodyBuff += generateHtmlRow('req_' + request + '.html', values);
	}
	
	i += 1;
});

$('#container_statistics thead').append(theadBuff);
$('#container_statistics tbody').append(tbodyBuff);


$.tablesorter.addParser({
	id: 'requests',
	is: function(text) { return false },
	format: function(text) { return parseInt(text.replace(/.*;/, '')) },
	type: 'numeric'
});

$('#container_statistics').tablesorter({
	cssAsc: "sorted-down",
	cssDesc: "sorted-up",
	headers: {
		0: {sorter: 'requests'},
		1: {sorter: false},
		2: {sorter: false},
		3: {sorter: false},
		4: {sorter: false}
	},
	sortList: [[0, 0]]
});

if (i <= 30) {
	$('#statistics_title span').attr('style', 'display: none;');
	$('#statistics_title').attr('style', 'cursor: auto;')
}
else {
	$("#statistics_title").click(function(){
		$(this).toggleClass("title_collapsed").toggleClass("title_not_collapsed");
		$(".statistics").toggleClass("collapsed").toggleClass("not_collapsed");
	});
}
Highcharts.setOptions({
	global: {
		useUTC: false
	}
});

allSessionsData.yAxis = 0;

var allSessionsChart = new Highcharts.StockChart({
	chart: {
		renderTo: 'container_active_sessions',
		zoomType: 'x'
	},
	credits: {
		enabled: false
	},
	legend: {
		enabled: true,
		floating: true,
		y: -285,
		borderWidth: 0
	},
	title: {
	  text: 'A title to let highcharts reserve the place for the title set later'
	},
	rangeSelector: {
		buttons : [{
		type : 'minute',
		count : 1,
		text : '1m'
	}, {
		type : 'minute',
		count : 10,
		text : '10m'
	}, {
		type : 'hour',
		count : 1,
		text : '1h'
	}, {
		type : 'all',
		count : 1,
		text : 'All'
	}],
	selected : 3,
	inputEnabled : false
	},
	xAxis: {
		type: 'datetime',
		ordinal: false,
		maxZoom: 10000 // three days
	},
	yAxis: {
		title: {
			text: 'Number of Active Sessions'
		}
	},
	series: [
				{
			color: '#4572A7'
, name: 'GetByName'
, data: [
[1351653198573,117],[1351653199573,192],[1351653200573,237],[1351653201573,272],[1351653202573,302],[1351653203573,372],[1351653204573,427],[1351653205573,457],[1351653206573,477],[1351653207573,502],[1351653208573,527],[1351653209573,562],[1351653210573,577],[1351653211573,587],[1351653212573,611],[1351653213573,640],[1351653214573,655],[1351653215573,745],[1351653216573,827],[1351653217573,841],[1351653218573,886],[1351653219573,983],[1351653220573,977],[1351653221573,971],[1351653222573,966],[1351653223573,965],[1351653224573,962],[1351653225573,952],[1351653226573,947],[1351653227573,941],[1351653228573,928],[1351653229573,921],[1351653230573,907],[1351653231573,896],[1351653232573,889],[1351653233573,879],[1351653234573,879],[1351653235573,850],[1351653236573,840],[1351653237573,828],[1351653238573,826],[1351653239573,799],[1351653240573,788],[1351653241573,777],[1351653242573,775],[1351653243573,761],[1351653244573,742],[1351653245573,739],[1351653246573,733],[1351653247573,731],[1351653248573,727],[1351653249573,723],[1351653250573,711],[1351653251573,706],[1351653252573,685],[1351653253573,667],[1351653254573,657],[1351653255573,642],[1351653256573,620],[1351653257573,602],[1351653258573,586],[1351653259573,578],[1351653260573,566],[1351653261573,561],[1351653262573,549],[1351653263573,539],[1351653264573,520],[1351653265573,507],[1351653266573,491],[1351653267573,478],[1351653268573,471],[1351653269573,461],[1351653270573,451],[1351653271573,432],[1351653272573,417],[1351653273573,386],[1351653274573,359],[1351653275573,343],[1351653276573,324],[1351653277573,301],[1351653278573,278],[1351653279573,252],[1351653280573,221],[1351653281573,199],[1351653282573,189],[1351653283573,178],[1351653284573,158],[1351653285573,121],[1351653286573,69],[1351653287573,11]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				{
			color: '#A0B228'
, name: 'Sobre'
, data: [
[1351653198573,422],[1351653199573,487],[1351653200573,527],[1351653201573,572],[1351653202573,607],[1351653203573,647],[1351653204573,662],[1351653205573,712],[1351653206573,737],[1351653207573,752],[1351653208573,797],[1351653209573,817],[1351653210573,831],[1351653211573,918],[1351653212573,936],[1351653213573,1003],[1351653214573,1057],[1351653215573,1057],[1351653216573,1141],[1351653217573,1156],[1351653218573,1170],[1351653219573,1241],[1351653220573,1301],[1351653221573,1388],[1351653222573,1395],[1351653223573,1423],[1351653224573,1458],[1351653225573,1465],[1351653226573,1480],[1351653227573,1541],[1351653228573,1565],[1351653229573,1592],[1351653230573,1623],[1351653231573,1633],[1351653232573,1676],[1351653233573,1682],[1351653234573,1692],[1351653235573,1710],[1351653236573,1713],[1351653237573,1742],[1351653238573,1725],[1351653239573,1719],[1351653240573,1708],[1351653241573,1698],[1351653242573,1688],[1351653243573,1659],[1351653244573,1651],[1351653245573,1633],[1351653246573,1619],[1351653247573,1611],[1351653248573,1603],[1351653249573,1593],[1351653250573,1584],[1351653251573,1578],[1351653252573,1566],[1351653253573,1549],[1351653254573,1544],[1351653255573,1542],[1351653256573,1541],[1351653257573,1529],[1351653258573,1522],[1351653259573,1513],[1351653260573,1505],[1351653261573,1495],[1351653262573,1485],[1351653263573,1476],[1351653264573,1472],[1351653265573,1464],[1351653266573,1454],[1351653267573,1445],[1351653268573,1440],[1351653269573,1426],[1351653270573,1408],[1351653271573,1399],[1351653272573,1390],[1351653273573,1385],[1351653274573,1369],[1351653275573,1357],[1351653276573,1339],[1351653277573,1332],[1351653278573,1316],[1351653279573,1304],[1351653280573,1282],[1351653281573,1268],[1351653282573,1260],[1351653283573,1250],[1351653284573,1224],[1351653285573,1185],[1351653286573,1140],[1351653287573,1032]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				{
			color: '#FF0000'
, name: 'GetByRUC'
, data: [
[1351653198573,166],[1351653199573,206],[1351653200573,276],[1351653201573,381],[1351653202573,431],[1351653203573,541],[1351653204573,576],[1351653205573,601],[1351653206573,631],[1351653207573,646],[1351653208573,721],[1351653209573,751],[1351653210573,786],[1351653211573,816],[1351653212573,831],[1351653213573,846],[1351653214573,861],[1351653215573,945],[1351653216573,999],[1351653217573,996],[1351653218573,993],[1351653219573,988],[1351653220573,986],[1351653221573,980],[1351653222573,979],[1351653223573,974],[1351653224573,971],[1351653225573,969],[1351653226573,962],[1351653227573,955],[1351653228573,951],[1351653229573,940],[1351653230573,934],[1351653231573,917],[1351653232573,910],[1351653233573,891],[1351653234573,877],[1351653235573,868],[1351653236573,864],[1351653237573,854],[1351653238573,850],[1351653239573,844],[1351653240573,813],[1351653241573,801],[1351653242573,800],[1351653243573,789],[1351653244573,776],[1351653245573,765],[1351653246573,748],[1351653247573,741],[1351653248573,737],[1351653249573,731],[1351653250573,725],[1351653251573,722],[1351653252573,711],[1351653253573,705],[1351653254573,689],[1351653255573,676],[1351653256573,666],[1351653257573,649],[1351653258573,634],[1351653259573,618],[1351653260573,604],[1351653261573,587],[1351653262573,576],[1351653263573,565],[1351653264573,558],[1351653265573,547],[1351653266573,536],[1351653267573,514],[1351653268573,493],[1351653269573,479],[1351653270573,465],[1351653271573,450],[1351653272573,417],[1351653273573,402],[1351653274573,381],[1351653275573,373],[1351653276573,363],[1351653277573,357],[1351653278573,349],[1351653279573,327],[1351653280573,312],[1351653281573,288],[1351653282573,280],[1351653283573,265],[1351653284573,224],[1351653285573,186],[1351653286573,137],[1351653287573,54]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				allSessionsData
	]
});


allSessionsChart.setTitle({
	text: '<span class="chart_title">Active Sessions along the Simulation</span>',
	useHTML: true
});

allSessionsData.yAxis = 1;
var responseTimeDistributionChart = new Highcharts.Chart({
	chart: {
		renderTo: 'container_distrib',
		type: 'column'
	},
	credits: {
		enabled: false
	},
	legend: {
		enabled: true,
		floating: true,
		y: -285,
		borderWidth: 0
	},
	title: {
		text: 'A title to let highcharts reserve the place for the title set later'
	},
	xAxis: {
		categories: ['18', '53', '88', '123', '158', '193', '228', '263', '298', '333', '368', '403', '438', '473', '508', '543', '578', '613', '648', '683', '718', '753', '788', '823', '858', '893', '928', '963', '998', '1033', '1068', '1103', '1138', '1173', '1208', '1243', '1278', '1313', '1348', '1383', '1418', '1453', '1488', '1523', '1558', '1593', '1628', '1663', '1698', '1733', '1768', '1803', '1838', '1873', '1908', '1943', '1978', '2013', '2048', '2083', '2118', '2153', '2188', '2223', '2258', '2293', '2328', '2363', '2398', '2433', '2468', '2503', '2538', '2573', '2608', '2643', '2678', '2713', '2748', '2783', '2818', '2853', '2888', '2923', '2958', '2993', '3028', '3063', '3098', '3133', '3168', '3203', '3238', '3273', '3308', '3343', '3378', '3413', '3448', '3483'],
		tickInterval: 20
	},
	yAxis: {
		min: 0,
		title: {
			text: 'Percentage of Requests'
		}
	},
	tooltip: {
		formatter: function() {
			return '<b>'+ this.x +' ms</b><br/>'+
			this.series.name +': '+ this.y +' %<br/>'+
			'Total: '+ this.point.stackTotal + ' %';
		}
	},
	plotOptions: {
		series: {
			groupPadding: 0,
			stacking: 'normal'
		}
	},
	series: [
		{
		type: 'column'
, color: '#4572A7'
, name: 'Success'
, data: [
25,3,3,2,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,2,1,2,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
, tooltip: { yDecimals: 0, ySuffix: 'ms' }	},
		{
		type: 'column'
, color: '#FF0000'
, name: 'Failure'
, data: [
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
, tooltip: { yDecimals: 0, ySuffix: 'ms' }	},
		]
});

responseTimeDistributionChart.setTitle({
	text: '<span class="chart_title">Response Time Distribution</span>',
	useHTML: true
});

Highcharts.setOptions({
	global: {
		useUTC: false
	}
});

var requestsChart = new Highcharts.StockChart({
	chart: {
		renderTo: 'container_requests',
		zoomType: 'x'
	},
	credits: {
		enabled: false
	},
	legend: {
		enabled: true,
		floating: true,
		y: -285,
		borderWidth: 0
	},
	title: {
		text: 'A title to let highcharts reserve the place for the title set later'
	},
	rangeSelector: {
			buttons : [{
			type : 'minute',
			count : 1,
			text : '1m'
		}, {
			type : 'minute',
			count : 10,
			text : '10m'
		}, {
			type : 'hour',
			count : 1,
			text : '1h'
		}, {
			type : 'all',
			count : 1,
			text : 'All'
		}],
		selected : 3,
		inputEnabled : false
	},
	xAxis: {
		type: 'datetime',
		ordinal: false,
		maxZoom: 10000 // three days
	},
	yAxis:[
	{
		min: 0,
		title: {
			text: 'Number of Requests',
			style: {
				color: '#4572A7'
			}
		}
	}, {
		min: 0,
		title: {
			text: 'Active Sessions',
			style: {
				color: '#FF9D00'
			}
		},
		opposite: true
	}],
	series:
	[
				{
			color: '#4572A7'
, name: 'All requests'
, data: [
[1351653198573,417],[1351653199573,540],[1351653200573,688],[1351653201573,737],[1351653202573,837],[1351653203573,987],[1351653204573,874],[1351653205573,850],[1351653206573,867],[1351653207573,863],[1351653208573,1197],[1351653209573,722],[1351653210573,967],[1351653211573,965],[1351653212573,1029],[1351653213573,1038],[1351653214573,1174],[1351653215573,1221],[1351653216573,1161],[1351653217573,1359],[1351653218573,1587],[1351653219573,1364],[1351653220573,2153],[1351653221573,1375],[1351653222573,1471],[1351653223573,1313],[1351653224573,1525],[1351653225573,1587],[1351653226573,1584],[1351653227573,1727],[1351653228573,1660],[1351653229573,1623],[1351653230573,1496],[1351653231573,1340],[1351653232573,1442],[1351653233573,1489],[1351653234573,1748],[1351653235573,1830],[1351653236573,1794],[1351653237573,1991],[1351653238573,1904],[1351653239573,1423],[1351653240573,1811],[1351653241573,1614],[1351653242573,2183],[1351653243573,1849],[1351653244573,1733],[1351653245573,1755],[1351653246573,1541],[1351653247573,1298],[1351653248573,1472],[1351653249573,1437],[1351653250573,877],[1351653251573,1414],[1351653252573,1369],[1351653253573,1228],[1351653254573,1333],[1351653255573,1194],[1351653256573,1165],[1351653257573,1137],[1351653258573,1189],[1351653259573,1223],[1351653260573,1360],[1351653261573,1561],[1351653262573,1119],[1351653263573,1113],[1351653264573,866],[1351653265573,1021],[1351653266573,900],[1351653267573,1052],[1351653268573,957],[1351653269573,980],[1351653270573,899],[1351653271573,963],[1351653272573,815],[1351653273573,1074],[1351653274573,826],[1351653275573,1092],[1351653276573,793],[1351653277573,943],[1351653278573,952],[1351653279573,996],[1351653280573,891],[1351653281573,541],[1351653282573,677],[1351653283573,1042],[1351653284573,1373],[1351653285573,1642],[1351653286573,2258],[1351653287573,3582],[1351653288573,1971]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				{
			color: '#FF0000'
, name: 'Failed requests'
, data: [
[1351653204573,1],[1351653205573,4],[1351653206573,12],[1351653207573,6],[1351653208573,8],[1351653210573,14],[1351653211573,7],[1351653212573,1],[1351653213573,12],[1351653214573,8],[1351653215573,10],[1351653216573,10],[1351653217573,26],[1351653218573,28],[1351653219573,8],[1351653220573,8],[1351653221573,10],[1351653222573,5],[1351653223573,10],[1351653224573,11],[1351653225573,18],[1351653226573,6],[1351653227573,5],[1351653228573,2],[1351653229573,20],[1351653230573,17],[1351653231573,23],[1351653232573,26],[1351653233573,26],[1351653234573,5],[1351653235573,17],[1351653236573,43],[1351653237573,12],[1351653238573,3],[1351653239573,11],[1351653240573,11],[1351653241573,13],[1351653242573,35],[1351653243573,28],[1351653244573,10],[1351653245573,12],[1351653246573,20],[1351653247573,19],[1351653248573,23],[1351653249573,30],[1351653250573,12],[1351653251573,18],[1351653252573,34],[1351653253573,22],[1351653254573,15],[1351653255573,21],[1351653256573,35],[1351653257573,11],[1351653258573,11],[1351653259573,15],[1351653260573,7],[1351653261573,28],[1351653262573,19],[1351653263573,26],[1351653264573,23],[1351653265573,23],[1351653266573,16],[1351653267573,22],[1351653268573,8]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				{
			color: '#A0B228'
, name: 'Succeeded requests'
, data: [
[1351653198573,417],[1351653199573,540],[1351653200573,688],[1351653201573,737],[1351653202573,837],[1351653203573,987],[1351653204573,873],[1351653205573,846],[1351653206573,855],[1351653207573,857],[1351653208573,1189],[1351653209573,722],[1351653210573,953],[1351653211573,958],[1351653212573,1028],[1351653213573,1026],[1351653214573,1166],[1351653215573,1211],[1351653216573,1151],[1351653217573,1333],[1351653218573,1559],[1351653219573,1356],[1351653220573,2145],[1351653221573,1365],[1351653222573,1466],[1351653223573,1303],[1351653224573,1514],[1351653225573,1569],[1351653226573,1578],[1351653227573,1722],[1351653228573,1658],[1351653229573,1603],[1351653230573,1479],[1351653231573,1317],[1351653232573,1416],[1351653233573,1463],[1351653234573,1743],[1351653235573,1813],[1351653236573,1751],[1351653237573,1979],[1351653238573,1901],[1351653239573,1412],[1351653240573,1800],[1351653241573,1601],[1351653242573,2148],[1351653243573,1821],[1351653244573,1723],[1351653245573,1743],[1351653246573,1521],[1351653247573,1279],[1351653248573,1449],[1351653249573,1407],[1351653250573,865],[1351653251573,1396],[1351653252573,1335],[1351653253573,1206],[1351653254573,1318],[1351653255573,1173],[1351653256573,1130],[1351653257573,1126],[1351653258573,1178],[1351653259573,1208],[1351653260573,1353],[1351653261573,1533],[1351653262573,1100],[1351653263573,1087],[1351653264573,843],[1351653265573,998],[1351653266573,884],[1351653267573,1030],[1351653268573,949],[1351653269573,980],[1351653270573,899],[1351653271573,963],[1351653272573,815],[1351653273573,1074],[1351653274573,826],[1351653275573,1092],[1351653276573,793],[1351653277573,943],[1351653278573,952],[1351653279573,996],[1351653280573,891],[1351653281573,541],[1351653282573,677],[1351653283573,1042],[1351653284573,1373],[1351653285573,1642],[1351653286573,2258],[1351653287573,3582],[1351653288573,1971]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				allSessionsData,
		{
			type: 'pie',
name: 'Distribution',
data: [
{name: 'Success', y: 116000, color: '#A0B228'},{name: 'Failures', y: 1000, color: '#FF0000'}],
center: [820, -20],
size: 70,
showInLegend: false,
dataLabels: { enabled: false },
dataGrouping: { enabled: false }		}
	]
});

requestsChart.setTitle({
	text: '<span class="chart_title">Number of Requests per Second</span>',
	useHTML: true
});
Highcharts.setOptions({
	global: {
		useUTC: false
	}
});

var transactionsChart = new Highcharts.StockChart({
	chart: {
		renderTo: 'container_transactions',
		zoomType: 'x'
	},
	credits: {
		enabled: false
	},
	legend: {
		enabled: true,
		floating: true,
		y: -285,
		borderWidth: 0
	},
	title: {
		text: 'A title to let highcharts reserve the place for the title set later'
	},
	rangeSelector: {
		buttons : [{
			type : 'minute',
			count : 1,
			text : '1m'
		}, {
			type : 'minute',
			count : 10,
			text : '10m'
		}, {
			type : 'hour',
			count : 1,
			text : '1h'
		}, {
			type : 'all',
			count : 1,
			text : 'All'
		}],
		selected : 3,
		inputEnabled : false
	},
	xAxis: {
		type: 'datetime',
		ordinal: false,
		maxZoom: 10000 // three days
	},
	yAxis:[
	{
		min: 0,
		title: {
			text: 'Number of Transactions',
			style: {
				color: '#4572A7'
			}
		}
	}, {
		min: 0,
		title: {
			text: 'Active Sessions',
			style: {
				color: '#FF9D00'
			}
		},
		opposite: true
	}],
	series:
	[
				{
			color: '#4572A7'
, name: 'All transactions'
, data: [
[1351653198573,413],[1351653199573,542],[1351653200573,690],[1351653201573,734],[1351653202573,836],[1351653203573,988],[1351653204573,867],[1351653205573,859],[1351653206573,866],[1351653207573,865],[1351653208573,683],[1351653209573,1232],[1351653210573,971],[1351653211573,964],[1351653212573,1025],[1351653213573,1010],[1351653214573,1205],[1351653215573,1150],[1351653216573,1233],[1351653217573,1347],[1351653218573,1557],[1351653219573,1406],[1351653220573,934],[1351653221573,1993],[1351653222573,1565],[1351653223573,1750],[1351653224573,1510],[1351653225573,1558],[1351653226573,1445],[1351653227573,1610],[1351653228573,1413],[1351653229573,1581],[1351653230573,1727],[1351653231573,1679],[1351653232573,1501],[1351653233573,1430],[1351653234573,1707],[1351653235573,1582],[1351653236573,1665],[1351653237573,1246],[1351653238573,1696],[1351653239573,2363],[1351653240573,1610],[1351653241573,1720],[1351653242573,1282],[1351653243573,1418],[1351653244573,1267],[1351653245573,1316],[1351653246573,1477],[1351653247573,1337],[1351653248573,1641],[1351653249573,1357],[1351653250573,790],[1351653251573,1463],[1351653252573,1444],[1351653253573,1252],[1351653254573,1341],[1351653255573,1253],[1351653256573,1223],[1351653257573,1190],[1351653258573,1252],[1351653259573,1301],[1351653260573,1404],[1351653261573,1571],[1351653262573,1077],[1351653263573,1123],[1351653264573,864],[1351653265573,1040],[1351653266573,930],[1351653267573,1085],[1351653268573,972],[1351653269573,1026],[1351653270573,967],[1351653271573,1013],[1351653272573,831],[1351653273573,1171],[1351653274573,843],[1351653275573,1150],[1351653276573,818],[1351653277573,1052],[1351653278573,1000],[1351653279573,1082],[1351653280573,905],[1351653281573,525],[1351653282573,721],[1351653283573,1116],[1351653284573,1464],[1351653285573,1805],[1351653286573,2534],[1351653287573,4222],[1351653288573,2357]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				{
			color: '#FF0000'
, name: 'Failed transactions'
, data: [
[1351653204573,1],[1351653205573,4],[1351653206573,12],[1351653207573,6],[1351653208573,5],[1351653209573,3],[1351653210573,14],[1351653211573,7],[1351653212573,1],[1351653213573,12],[1351653214573,8],[1351653215573,2],[1351653216573,18],[1351653217573,26],[1351653218573,28],[1351653219573,8],[1351653220573,2],[1351653221573,14],[1351653222573,3],[1351653223573,14],[1351653224573,11],[1351653225573,18],[1351653226573,5],[1351653227573,6],[1351653228573,2],[1351653229573,11],[1351653230573,22],[1351653231573,27],[1351653232573,26],[1351653233573,26],[1351653234573,5],[1351653235573,15],[1351653236573,26],[1351653237573,24],[1351653238573,8],[1351653239573,7],[1351653240573,15],[1351653241573,15],[1351653242573,14],[1351653243573,22],[1351653244573,24],[1351653245573,9],[1351653246573,3],[1351653247573,10],[1351653248573,22],[1351653249573,22],[1351653250573,14],[1351653251573,27],[1351653252573,21],[1351653253573,17],[1351653254573,31],[1351653255573,25],[1351653256573,14],[1351653257573,20],[1351653258573,35],[1351653259573,14],[1351653260573,18],[1351653261573,12],[1351653262573,10],[1351653263573,21],[1351653264573,18],[1351653265573,10],[1351653266573,27],[1351653267573,25],[1351653268573,24],[1351653269573,21],[1351653270573,11],[1351653271573,2]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				{
			color: '#A0B228'
, name: 'Succeeded transactions'
, data: [
[1351653198573,413],[1351653199573,542],[1351653200573,690],[1351653201573,734],[1351653202573,836],[1351653203573,988],[1351653204573,866],[1351653205573,855],[1351653206573,854],[1351653207573,859],[1351653208573,678],[1351653209573,1229],[1351653210573,957],[1351653211573,957],[1351653212573,1024],[1351653213573,998],[1351653214573,1197],[1351653215573,1148],[1351653216573,1215],[1351653217573,1321],[1351653218573,1529],[1351653219573,1398],[1351653220573,932],[1351653221573,1979],[1351653222573,1562],[1351653223573,1736],[1351653224573,1499],[1351653225573,1540],[1351653226573,1440],[1351653227573,1604],[1351653228573,1411],[1351653229573,1570],[1351653230573,1705],[1351653231573,1652],[1351653232573,1475],[1351653233573,1404],[1351653234573,1702],[1351653235573,1567],[1351653236573,1639],[1351653237573,1222],[1351653238573,1688],[1351653239573,2356],[1351653240573,1595],[1351653241573,1705],[1351653242573,1268],[1351653243573,1396],[1351653244573,1243],[1351653245573,1307],[1351653246573,1474],[1351653247573,1327],[1351653248573,1619],[1351653249573,1335],[1351653250573,776],[1351653251573,1436],[1351653252573,1423],[1351653253573,1235],[1351653254573,1310],[1351653255573,1228],[1351653256573,1209],[1351653257573,1170],[1351653258573,1217],[1351653259573,1287],[1351653260573,1386],[1351653261573,1559],[1351653262573,1067],[1351653263573,1102],[1351653264573,846],[1351653265573,1030],[1351653266573,903],[1351653267573,1060],[1351653268573,948],[1351653269573,1005],[1351653270573,956],[1351653271573,1011],[1351653272573,831],[1351653273573,1171],[1351653274573,843],[1351653275573,1150],[1351653276573,818],[1351653277573,1052],[1351653278573,1000],[1351653279573,1082],[1351653280573,905],[1351653281573,525],[1351653282573,721],[1351653283573,1116],[1351653284573,1464],[1351653285573,1805],[1351653286573,2534],[1351653287573,4222],[1351653288573,2357]]
, tooltip: { yDecimals: 0, ySuffix: '' }		},
				allSessionsData,
		{
			type: 'pie',
name: 'Distribution',
data: [
{name: 'Success', y: 116000, color: '#A0B228'},{name: 'Failures', y: 1000, color: '#FF0000'}],
center: [820, -20],
size: 70,
showInLegend: false,
dataLabels: { enabled: false },
dataGrouping: { enabled: false }		}
	]
});

transactionsChart.setTitle({
	text: '<span class="chart_title">Number of transactions per second</span>',
	useHTML: true
});
	});

</script>
</body>
</html>